package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
//import com.sun.org.apache.xpath.internal.objects.XString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.entity.SysDept;

import java.math.BigDecimal;

/**
 * 油厂指标管理对象 yc_inde
 * 
 * @author ruoyi
 * @date 2022-10-15
 */
public class YcInde extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 指标序号 */
    private Long indeId;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String indeName;

    /** 指标标杆 */
    @Excel(name = "指标标杆值")
    private BigDecimal indeFlag;

    /** 单位 */
    @Excel(name = "指标单位")
    private String indeUnit;

    /** 维度 */
    @Excel(name = "维度(月/季度/年)",readConverterExp = "0=月,1=季度,2=年")
    private String indeDimension;

    /** 对标作业区 */
    @Excel(name = "对标作业区")
    private String flagArea;

    /** 指标级别 */
    @Excel(name = "指标级别(厂级/区级/站级)",width = 30,readConverterExp = "0=厂级,1=区级,2=站级")
    private String indeLevel;

    @Excel(name = "大于小于标杆值(大于标杆值达标/小于标杆值达标)",width = 40,readConverterExp = "0=大于标杆值达标,1=小于标杆值达标")
    private Long raiseLower;


    /** 部门序号 */
    private Long deptId;

    @Excel(name = "所属部门")
    private String deptIdName;

    @Excel(name = "指标年份")
    private Long indeYear;

//    部门对象
    private SysDept dept;

    public void setDeptIdName(String deptIdName){
        this.deptIdName = deptIdName;
    }

    public String getDeptIdName(){
        return deptIdName;
    }

    public void setIndeYear(Long indeYear) {
        this.indeYear = indeYear;
    }
    public Long getIndeYear(){
        return indeYear;
    }

    public SysDept getSysDept()
    {
        return dept;
    }

    public void setSysDept(SysDept dept)
    {
        this.dept = dept;
    }

    public void setIndeId(Long indeId)
    {
        this.indeId = indeId;
    }

    public Long getIndeId() 
    {
        return indeId;
    }

    public void setIndeName(String indeName) 
    {
        this.indeName = indeName;
    }

    public String getIndeName() 
    {
        return indeName;
    }
    public void setIndeFlag(BigDecimal indeFlag) 
    {
        this.indeFlag = indeFlag;
    }

    public BigDecimal getIndeFlag() 
    {
        return indeFlag;
    }
    public void setIndeUnit(String indeUnit) 
    {
        this.indeUnit = indeUnit;
    }

    public String getIndeUnit() 
    {
        return indeUnit;
    }
    public void setIndeDimension(String indeDimension) 
    {
        this.indeDimension = indeDimension;
    }

    public String getIndeDimension() 
    {
        return indeDimension;
    }
    public void setFlagArea(String flagArea) 
    {
        this.flagArea = flagArea;
    }

    public String getFlagArea() 
    {
        return flagArea;
    }
    public void setIndeLevel(String indeLevel) 
    {
        this.indeLevel = indeLevel;
    }

    public String getIndeLevel() 
    {
        return indeLevel;
    }

    public void setRaiseLower(Long raiseLower){this.raiseLower = raiseLower; }

    public Long getRaiseLower() {return raiseLower;}

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("indeId", getIndeId())
            .append("indeName", getIndeName())
            .append("indeFlag", getIndeFlag())
            .append("indeUnit", getIndeUnit())
            .append("indeDimension", getIndeDimension())
            .append("flagArea", getFlagArea())
            .append("indeLevel", getIndeLevel())
            .append("raiseLower",getRaiseLower())
            .append("deptId", getDeptId())
            .append("createTime", getCreateTime())
            .append("dept",getSysDept())
            .append("indeYear",getIndeYear())
            .append("deptIdName",getDeptIdName())
            .toString();
    }
}
